package com.xiaoyy.sso.core.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 路由功能表
 * </p>
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_ROUTER_FUNC")
@ApiModel(value="SysRouterFunc对象", description="路由功能表")
public class SysRouterFunc extends Model<SysRouterFunc> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "系统主键")
    @TableId(value = "SYS_ID", type = IdType.INPUT)
    private Long sysId;

    @ApiModelProperty(value = "路由id")
    @TableField("ROUTER_ID")
    private String routerId;

    @ApiModelProperty(value = "功能代码")
    @TableField("FUNC_CODE")
    private String funcCode;

    @ApiModelProperty(value = "功能名称")
    @TableField("FUNC_NAME")
    private String funcName;

    @ApiModelProperty(value = "功能id")
    @TableField("FUNC_ID")
    private String funcId;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_NAME")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_NAME")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除标志 0 正常 1 删除")
    @TableField("DEL")
    private String del;


    @Override
    protected Serializable pkVal() {
        return this.sysId;
    }

}
